<template>
  <div id="canvas_panel" class="context_panel" style="display: block">
    <record-frame></record-frame>
    <h4 class="clearfix">画布</h4>
    <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>X</span>
        <a-input
          v-model.number="$store.state.figureParameter.x1"
          size="small"
        />
      </div>
      <div class="cursor_tall">
        <span>Y</span>
        <a-input
          v-model.number="$store.state.figureParameter.y1"
          size="small"
        />
      </div>
    </div>
    <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>宽度</span>
        <a-input
          v-model.number="$store.state.figureParameter.w1"
          size="small"
        />
      </div>
      <div class="cursor_tall">
        <span>高度</span>
        <a-input
          v-model.number="$store.state.figureParameter.h1"
          size="small"
        />
      </div>
    </div>
    <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>文本大小</span>
        <a-input
          v-model.number="$store.state.figureParameter.fontSize"
          size="small"
        />
      </div>
      <div style="flex: 1"></div>
    </div>
    <!-- <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>旋转</span>
        <a-input size="small" />
      </div>
      <div class="cursor_tall">
        <span>透明度</span>
        <a-input size="small" />
      </div>
    </div>
    <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>圆度</span>
        <a-input size="small" />
      </div>
      <div style="flex: 1; padding: 0.625rem;"></div>
    </div>
    <div class="cursor_measurement">
      <div class="cursor_wide">
        <span>划线宽度</span>
        <a-input size="small" />
      </div>
      <div class="cursor_tall">
        <span>划线样式</span>
        <a-select style="width: 100%;" size="small">
          <a-select-option value="none">—</a-select-option>
          <a-select-option value="2,2">···</a-select-option>
          <a-select-option value="5,5">- -</a-select-option>
          <a-select-option value="5,2,2,2">-·-</a-select-option>
          <a-select-option value="5,2,2,2,2,2">-··-</a-select-option>
        </a-select>
      </div>
    </div> -->
  </div>
</template>

<script>
import recordFrame from "@/components/Canvas-propertys/recordFrame";
export default {
  components: {
    recordFrame,
  },
  data() {
    return {};
  },
  mounted() {
    this.$on("checkFigure", (e) => {
      console.log(e);
    });
  },
};
</script>

<style lang="less" scoped>
.context_panel {
  margin: 0 1rem;
  h4 {
    color: #ffffff !important;
    font-size: 0.8rem;
  }
  .cursor_measurement {
    margin-bottom: 0.625rem;
    display: flex;
    .cursor_wide {
      flex: 1;
      background-color: #3f3f3c;
      margin-right: 1.25rem;
      padding: 0.4rem 0.5rem;
      span {
        color: white;
      }
      input {
        margin-top: 0.2rem;
      }
    }
    .cursor_tall {
      flex: 1;
      background-color: #3f3f3c;
      padding: 0.4rem 0.5rem;
      span {
        color: white;
      }
      input {
        margin-top: 0.2rem;
      }
      .ant-select {
        margin-top: 0.2rem;
      }
    }
  }
  .information_box {
    margin-bottom: 0.4rem;
  }
}
</style>
